import java.util.Scanner;

public class CarText {
    public static void main(String[] args) {
        Car[] arr = new Car[3];
        for (int i = 0; i < arr.length; i++) {
            Car car = new Car();
            System.out.println("请输入汽车的品牌");
            Scanner sc = new Scanner(System.in);
            car.brand = sc.next();
            System.out.println("请输入汽车的价格");
            car.price = sc.nextDouble();
            System.out.println("请输入汽车的颜色");
            car.color = sc.next();
            arr[i] = car;
        }
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i].getBrand() + "    " + arr[i].price + "    " + arr[i].color);
        }
    }
}
